package com.fantasy.demo1.service;

import com.fantasy.demo1.entity.SecurityUser;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class SecurityUserService {

    public List<SecurityUser> getUser(String id) throws ClassNotFoundException {
        ArrayList<SecurityUser> securityUser = new ArrayList<>();
        SecurityUser user1 = new SecurityUser();
        user1.setId(id);
        user1.setUsername("fantasy");
        user1.setPassword("123456");
        user1.setRole("admin");
        securityUser.add(user1);
        return securityUser;
    }
}
